﻿
<!-- saved from url=(0061)http://wxtask.sztfhd.xyz/Help/Index/help_post_api#guid-616219 -->
<html lang="zh-cn" class="ks-webkit537 ks-webkit ks-chrome63 ks-chrome"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>
        微信辅助接口说明文档
    </title>

</head>
<body><div class="help-body ">
    <div class="y-row">
        <div class="y-span12">
            <div class="help-body-no-left">
                <link rel="stylesheet" type="text/css" href="./wxcss/saved_resource">

                <div data-spm="616217" data-moduleid="188643" data-name="wb-zc-mnmod-soon-nav" data-guid="616217" id="guid-616217" data-scene-id="736880" data-scene-version="2" data-hidden="" data-gitgroup="ali-mod" data-ext="" data-engine="tce" class="wb-zc-mnmod-soon-nav J_Module" tms="wb-zc-mnmod-soon-nav/0.0.6" tms-datakey="tce/736880">
                    <div class="module-wrap J_tb_lazyload">
                        <div class="nav-wrap">
                            <div class="nav-box" style="height: 50px;">
                                <div class="protect">
                                    <ul class="nav">

                                        <li class="on">
                                            <a href="#1" class="tab-achor" data-spm-click="gostr=/aliyun;locaid=1">添加二维码记录</a>
                                        </li>

                                        <li>
                                            <a href="#2" class="tab-achor" data-spm-click="gostr=/aliyun;locaid=2">微信辅助成功回调</a>
                                        </li>

                                        <li>
                                            <a href="#3" class="tab-achor" data-spm-click="gostr=/aliyun;locaid=3">二维码超时过期删除</a>
                                        </li>

                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>


                </div>

                <!--region -->


                <!--region -->

                <a name="1"></a>
                <div  data-spm="616218" data-moduleid="188904" data-name="wb-zc-mnmod-soon-control" data-guid="616218" id="guid-616218" data-scene-id="736883" data-scene-version="3" data-hidden="" data-gitgroup="ali-mod" data-ext="" data-engine="tce" class="wb-zc-mnmod-soon-control J_Module" tms="wb-zc-mnmod-soon-control/0.0.16" tms-datakey="tce/736883">
                    <link rel="stylesheet" href="./wxcss/base.css">
                    <link rel="stylesheet" type="text/css" href="./wxcss/common.css">
                    <link type="text/css" rel="stylesheet" href="./wxcss/saved_resource(1)">
                    <link type="text/css" rel="stylesheet" href="http://assets/css/editormd-markdown.css">
                    <script src="./wxcss/jquery.min.js.下载"></script>
                    <div class="module-wrap J_tb_lazyload">
                        <div class="box">
                            <h3 style="color: red;font-size: 30px">1/添加二维码记录接口</h3>
                             <h3 style="color: red;font-size: 30px">主机地址：http://dcdcnn.com:8080/ke/</h3>
                             <h3 style="color: red;font-size: 30px">返回状态码由Code 改为val</h3>
                             <h3 style="color: red;font-size: 30px">请求响应失败处添加显示失败原因</h3>
                            <div class="help-body-box help-body-box-detail" data-spm="2">
                                <div class="markdown-body">
                                    <p>地址： /admin/addtask</p>
                                    <p>请求方式：POST</p>
                                    <p>参数说明</p>
                                    <table border="1">
                                        <tbody><tr>
                                            <th>参数</th>
                                            <th>备注</th>
                                            <th>是否必须</th>
                                            <th>示例</th>
                                        </tr>
                                        <tr>
                                            <td>account</td>
                                            <td>用户ID(分配的账号)</td>
                                            <td>是</td>
                                            <td>test</td>
                                        </tr>
                                        <tr>
                                            <td>Token</td>
                                            <td>访问的token(T大写)</td>
                                            <td>是</td>
                                            <td>假如密码为abc123,那么Token=Md5("testabc12320180106")<br>
                                                原文规则 (账号+密码+当天时间)
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>fname</td>
                                            <td>二维码文件名字(唯一标识)</td>
                                            <td>是</td>
                                            <td>2mgismfbroraxmi5</td>
                                        </tr>
                                        <tr>
                                            <td>fdata</td>
                                            <td>二维码文件数据(图片base64)</td>
                                            <td>是</td>
                                            <td>iVBORw0KGgoAAAANSUhEUgA.......HwVoX7XQA==</td>
                                        </tr>
                                    </tbody></table>
                                    <h2>XXT实例</h2>
                                    <pre class="prettyprint linenums prettyprinted" style="line-height:0.45"><ol class="linenums">

                                        <li class="L0"><code><span class="pln"> —添加记录给服务器</span></code></li>
                                        <li class="L0"><code><span class="pln"> function dsfshangchuan(rname,filebase64data)</span></code></li>
                                        <li class="L0"><code><span class="pln"> local temp_today = os.date("%Y%m%d",os.time())</span></code></li>
                                        <li class="L0"><code><span class="pln"> local temp_token_mw=“testabc123”..temp_today</span></code></li>
                                        <li class="L0"><code><span class="pln"> local temp_token=temp_token_mw:md5()</span></code></li>
                                        <li class="L0"><code><span class="pln"> while true do</span></code></li>
                                        <li class="L0"><code><span class="pln">      local code, res_headers, body = http.post("http://dcdcnn.com:8080/ke/admin/addtask", 10, { </span></code></li>
                                        <li class="L0"><code><span class="pln">                  ["User-Agent"] = "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0)", </span></code></li>
                                        <li class="L0"><code><span class="pln">                  }, "fname="..rname.."&amp;account=test&amp;Token="..temp_token.."&amp;fdata="..filebase64data) </span></code></li>
                                        <li class="L0"><code><span class="pln">      if code==200 then </span></code></li>
                                        <li class="L0"><code><span class="pln">          rizi("上传记录：”..body) </span></code></li>
                                        <li class="L0"><code><span class="pln">          temp = json.decode(body)</span></code></li>
                                        <li class="L0"><code><span class="pln">          rizi("code="..temp["code"])</span></code></li>
                                        <li class="L0"><code><span class="pln">          rizi("msg="..temp["msg"])</span></code></li>
                                        <li class="L0"><code><span class="pln">          if tonumber(temp["val"]) == 200 then</span></code></li>
                                        <li class="L0"><code><span class="pln">                rizi("上传成功")</span></code></li>
                                        <li class="L0"><code><span class="pln">                return</span></code></li>
                                        <li class="L0"><code><span class="pln">          end</span></code></li>
                                        <li class="L0"><code><span class="pln">      else</span></code></li>
                                        <li class="L0"><code><span class="pln">           rizi("上传失败".temp["msg"])</span></code></li>
                                        <li class="L0"><code><span class="pln">      end</span></code></li>
                                        <li class="L0"><code><span class="pln"> end</span></code></li>

                                    </ol></pre>
                            </div>
                            <div class="mask"></div>
                            <div class="mask-dialog">
                                <div class="colse"><img src="./wxcss/TB1xVjWOFXXXXXmapXXXXXXXXXX-50-50.png" alt=""></div>
                                <div class="inner">
                                    <div class="img-box">

                                    </div>
                                </div>
                            </div>

                        </div>
                    </div>
                </div>
                    <a name="2"></a>
                <div  data-spm="616219" data-moduleid="188909" data-name="wb-zc-mnmod-soon-tools" data-guid="616219" id="guid-616219" data-scene-id="736881" data-scene-version="1" data-hidden="" data-gitgroup="ali-mod" data-ext="" data-engine="tce" class="wb-zc-mnmod-soon-tools J_Module" tms="wb-zc-mnmod-soon-tools/0.0.3" tms-datakey="tce/736881">
                    <div class="module-wrap J_tb_lazyload">
                        <div class="box">
                            <h3 style="color: red;font-size: 30px">2/微信辅助成功回调接口</h3>
                            <div class="help-body-box help-body-box-detail" data-spm="2">
                                <div class="markdown-body">
                                    <p>地址：/admin/tasksuccess</p>
                                    <p>请求方式：POST</p>
                                    <p>参数说明</p>
                                    <table border="1">
                                        <tbody><tr>
                                            <th>参数</th>
                                            <th>备注</th>
                                            <th>是否必须</th>
                                            <th>示例</th>
                                        </tr>
                                        <tr>
                                            <td>account</td>
                                            <td>用户ID(分配的账号)</td>
                                            <td>是</td>
                                            <td>test</td>
                                        </tr>
                                        <tr>
                                            <td>Token</td>
                                            <td>访问的token(T大写)</td>
                                            <td>是</td>
                                            <td>假如密码为abc123,那么Token=Md5("testabc12320180106")<br>
                                                原文规则 (账号+密码+当天时间)
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>fname</td>
                                            <td>二维码文件名字(唯一标识)</td>
                                            <td>是</td>
                                            <td>2mgismfbroraxmi5</td>
                                        </tr>
                                    </tbody></table>
                                    <h2>XXT实例</h2>
                                    <pre class="prettyprint linenums prettyprinted" style="line-height:0.45"><ol class="linenums">

                                        <li class="L0"><code><span class="pln"> —辅助成功回调通知服务器</span></code></li>
                                        <li class="L0"><code><span class="pln"> function succsenotify(rname)</span></code></li>
                                        <li class="L0"><code><span class="pln"> local temp_today = os.date("%Y%m%d",os.time())</span></code></li>
                                        <li class="L0"><code><span class="pln"> local temp_token_mw=“testabc123”..temp_today</span></code></li>
                                        <li class="L0"><code><span class="pln"> local temp_token=temp_token_mw:md5()</span></code></li>
                                        <li class="L0"><code><span class="pln"> while true do</span></code></li>
                                        <li class="L0"><code><span class="pln">      local code, res_headers, body = http.post("http://dcdcnn.com:8080/ke/admin/addtask", 10, { </span></code></li>
                                        <li class="L0"><code><span class="pln">                  ["User-Agent"] = "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0)", </span></code></li>
                                        <li class="L0"><code><span class="pln">                  }, "fname="..rname.."&amp;account=test&amp;Token="..temp_token) </span></code></li>
                                        <li class="L0"><code><span class="pln">      if code==200 then </span></code></li>
                                        <li class="L0"><code><span class="pln">          rizi("成功反馈：：”..body) </span></code></li>
                                        <li class="L0"><code><span class="pln">          temp = json.decode(body)</span></code></li>
                                        <li class="L0"><code><span class="pln">          rizi("code="..temp["code"])</span></code></li>
                                        <li class="L0"><code><span class="pln">          rizi("msg="..temp["msg"])</span></code></li>
                                        <li class="L0"><code><span class="pln">          if tonumber(temp["val"]) == 200 then</span></code></li>
                                        <li class="L0"><code><span class="pln">                rizi("反馈成功")</span></code></li>
                                        <li class="L0"><code><span class="pln">                return</span></code></li>
                                        <li class="L0"><code><span class="pln">          end</span></code></li>
                                        <li class="L0"><code><span class="pln">      else</span></code></li>
                                        <li class="L0"><code><span class="pln">           rizi("反馈失败".temp["msg"])</span></code></li>
                                        <li class="L0"><code><span class="pln">      end</span></code></li>
                                        <li class="L0"><code><span class="pln"> end</span></code></li>

                                    </ol></pre>
                                </div>
                                <div class="mask"></div>
                                <div class="mask-dialog">
                                    <div class="colse"><img src="./wxcss/TB1xVjWOFXXXXXmapXXXXXXXXXX-50-50.png" alt=""></div>
                                    <div class="inner">
                                        <div class="img-box">

                                        </div>
                                    </div>
                                </div>

                            </div>
                        </div>
                    </div>
                </div>
                    <a name="3"></a>
                    <div    data-spm="616220" data-moduleid="188911" data-name="wb-zc-mnmod-soon-next" data-guid="616220" id="guid-616220" data-scene-id="736882" data-scene-version="2" data-hidden="" data-gitgroup="ali-mod" data-ext="" data-engine="tce" class="wb-zc-mnmod-soon-next J_Module" tms="wb-zc-mnmod-soon-next/0.0.4" tms-datakey="tce/736882">
                    <div class="module-wrap J_tb_lazyload">
                        <div class="box">
                            <h3 style="color: red;font-size: 30px">3/二维码超时过期删除接口</h3>
                            <div class="help-body-box help-body-box-detail" data-spm="2">
                                <div class="markdown-body">
                                    <p>地址： /admin/taskdel</p>
                                    <p>请求方式：POST</p>
                                    <p>参数说明</p>
                                    <table border="1">
                                        <tbody><tr>
                                            <th>参数</th>
                                            <th>备注</th>
                                            <th>是否必须</th>
                                            <th>示例</th>
                                        </tr>
                                        <tr>
                                            <td>account</td>
                                            <td>用户ID(分配的账号)</td>
                                            <td>是</td>
                                            <td>test</td>
                                        </tr>
                                        <tr>
                                            <td>Token</td>
                                            <td>访问的token(T大写)</td>
                                            <td>是</td>
                                            <td>假如密码为abc123,那么Token=Md5("testabc12320180106")<br>
                                                原文规则 (账号+密码+当天时间)
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>fname</td>
                                            <td>二维码文件名字(唯一标识)</td>
                                            <td>是</td>
                                            <td>2mgismfbroraxmi5</td>
                                        </tr>
                                    </tbody></table>
                                    <h2>XXT实例</h2>
                                    <pre class="prettyprint linenums prettyprinted" style="line-height:0.45"><ol class="linenums">

                                        <li class="L0"><code><span class="pln"> —超时通知服务器下架二维码</span></code></li>
                                        <li class="L0"><code><span class="pln"> function delqrNotify(rname)</span></code></li>
                                        <li class="L0"><code><span class="pln"> local temp_today = os.date("%Y%m%d",os.time())</span></code></li>
                                        <li class="L0"><code><span class="pln"> local temp_token_mw=“testabc123”..temp_today</span></code></li>
                                        <li class="L0"><code><span class="pln"> local temp_token=temp_token_mw:md5()</span></code></li>
                                        <li class="L0"><code><span class="pln">  local code, res_headers, body = http.post("http://dcdcnn.com:8080/ke/admin/addtask", 10, { </span></code></li>
                                        <li class="L0"><code><span class="pln">              ["User-Agent"] = "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0)", </span></code></li>
                                        <li class="L0"><code><span class="pln">              }, "fname="..rname.."&amp;account=test&amp;Token="..temp_token) </span></code></li>
                                        <li class="L0"><code><span class="pln">  if code==200 then </span></code></li>
                                        <li class="L0"><code><span class="pln">      rizi("删除二维码：”..body) </span></code></li>
                                        <li class="L0"><code><span class="pln">      temp = json.decode(body)</span></code></li>
                                        <li class="L0"><code><span class="pln">      rizi("code="..temp["code"])</span></code></li>
                                        <li class="L0"><code><span class="pln">      rizi("msg="..temp["msg"])</span></code></li>
                                        <li class="L0"><code><span class="pln">      if tonumber(temp["val"]) == 200 then</span></code></li>
                                        <li class="L0"><code><span class="pln">            rizi("删除二维码成功")</span></code></li>
                                        <li class="L0"><code><span class="pln">            return</span></code></li>
                                        <li class="L0"><code><span class="pln">      end</span></code></li>
                                        <li class="L0"><code><span class="pln">  else</span></code></li>
                                        <li class="L0"><code><span class="pln">       rizi("删除失败".temp["msg"])</span></code></li>
                                        <li class="L0"><code><span class="pln">  end</span></code></li>

                                    </ol></pre>
                                </div>
                                <div class="mask"></div>
                                <div class="mask-dialog">
                                    <div class="colse"><img src="./wxcss/TB1xVjWOFXXXXXmapXXXXXXXXXX-50-50.png" alt=""></div>
                                    <div class="inner">
                                        <div class="img-box">

                                        </div>
                                    </div>
                                </div>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>


</div>

<link rel="stylesheet" type="text/css" href="./wxcss/saved_resource(2)">
</div>

</body></html>